<?php 
require_once("checklogin.php");
require_once('classQuanTriTin.php');
$qt = new quantritin;

if (isset($_POST['btnOK'])==true) {
	$qt->ThemDiaDanh();
	header("location:main.php?p=diadanh_list");
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Thêm địa danh</title>
<script type="text/javascript" src="../Scripts/jquery-1.4.3.min.js"></script>

<script type="text/javascript" src="../Scripts/jquery.ui.core.js"></script>
<script type="text/javascript" src="../Scripts/jquery.ui.datepicker.js"></script>


</script>

<script>
$(document).ready(function() {
	$("#Ngay").datepicker({
		numberOfMonths: 1,  dateFormat: 'dd/mm/yy',
		monthNames: ['Một','Hai','Ba','Tư','Năm','Sáu','Bảy','Tám','Chín', 
		'Mười','Mười một','Mười hai'] ,
		monthNamesShort: ['Tháng1','Tháng2','Tháng3','Tháng4','Tháng5',
		'Tháng6','Tháng7','Tháng8','Tháng9','Tháng10','Tháng11','Tháng12'] ,
		dayNames: ['Chủ nhật', 'Thứ hai', 'Thứ ba', 'Thứ tư', 'Thứ năm',
		 'Thứ sáu', 'Thứ bảy'],
		dayNamesMin: ['CN', 'T2', 'T3', 'T4', 'T5', 'T6', 'T7'] ,
		showWeek: true , showOn: 'both',
		changeMonth: true , changeYear: true,
		currentText: 'Hôm nay', weekHeader: 'Tuần'
	});
});
</script>


<style>
#NewsDetail {
	width: 500px;
	border-top-width: 1px;
	border-right-width: 1px;
	border-bottom-width: 1px;
	border-left-width: 1px;
	border-top-color: #030;
	border-right-color: #030;
	border-bottom-color: #030;
	border-left-color: #030;
	font-family: Arial, Helvetica, sans-serif;
}
#from_label {
	height: 38px;
	width: 500px;
	background-color: #FFFFFF;
}

#from_label_left {
	background-image: url(../images/from_logo_left.jpg);
	background-repeat: no-repeat;
	float: left;
	height: 38px;
	width: 19px;
}
#from_label_right {
	background-image: url(../images/from_logo_right.jpg);
	background-repeat: no-repeat;
	float: right;
	height: 38px;
	width: 19px;
}
#from_label_center {
	background-image: url(../images/from_logo_center.jpg);
	background-repeat: repeat-x;
	height: 38px;
	margin-right: 19px;
	margin-left: 19px;
	text-align: center;
	color: #FFFFFF;
	font-family: Arial, Helvetica, sans-serif;
	font-weight: bold;
	padding-top: 5px;
	width: 465px;
}
#NewsDetail td{
	border-bottom-width: 1px;
	border-bottom-style: solid;
	border-bottom-color: #FFFFFF;
	border-top-width: 1px;
	border-top-style: solid;
	border-top-color: #FFFFFF;
}
.left {
	background-color: #FFDDDD;
}
.from_label1 {
	background-color: #FFFFFF;
}
#NewsDetail th {
	width: 90px;
	border-bottom-style: solid;
	border-bottom-color: #FFFFFF;
	background-color: #FFDDDD;
	border-bottom-width: 1px;
	border-top-width: 1px;
	border-top-style: solid;
	border-top-color: #FFFFFF;
}

#btnOK{
	background-color:#862B2F;
	color:#D28286;
	width:80px;
	padding:3px;
	border:1px solid #E1AAAD;
	font-size: 12px;
	font-weight: bolder;
}
#NewsDetail .txt{
	color:#FFFFFF;
	background-color:#A8353C;
	width:300px;
	border:solid 1px #963;
	padding-top:3px;
	padding-bottom:3px;
	font-weight: bolder;
}

#NewsDetail #btnOK {
	color: #99FF00; background-color: #003366;
	width: 80px; padding-top: 3px; padding-bottom: 3px;
}
#btnXoa {
	background-color:#862B2F;
	color:#D28286;
	width:80px;
	padding:3px;
	border:1px solid #E1AAAD;
	font-size: 12px;
	font-weight: bolder;
}
</style>
<link href="../Scripts/jquery-ui-1.8.2.custom.css" rel="stylesheet" type="text/css" />
</head>

<body>
<form id="formNewsDetail" name="formNewsDetail" method="post" action="">
  <table border=0 align=center cellpadding=4 cellspacing=0 id=NewsDetail>
    <tr>
      <th colspan="2"> <div id="from_label">
          <div id="from_label_left"></div>
        <div id="from_label_right"></div>
        <div id="from_label_center"><span id="header">THÊM ĐỊA DANH</span></div>
      </div></th>
    </tr>
    <tr>
      <th width="143"><div align="right" class="style2">Tên</div></th>
      <td width="370"><input type=text name=TieuDe id=TieuDe class=txt /></td>
    </tr>
    <tr>
      <th><div align="right" class="style2">Thứ tự</div></th>
      <td><input type="text" name="ThuTu" id="ThuTu" class="txt"/></td>
    </tr>
    <tr>
      <th><div align="right" class="style2">Ẩn hiện</div></th>
      <td><input type="radio" name="AnHien" id="0" value="0" />
        Ẩn
        <input type="radio" name="AnHien" id="1" value="1"  checked="checked"/>
        Hiện </td>
    </tr>
  </table>
  <div align=center>
<input type="reset" name="btnXoa" id="btnXoa" value=" Xoá " />&nbsp;        
   <input type="submit" name="btnOK" id="btnOK" value="  OK  " />
</div>

</form>

</body>
</html>
